import mount from "./compiler/index.js";
import initData from "./initData.js";

// vue实例
export default function Vue(options) {
  // debugger;
  this._init(options);
}

Vue.prototype._init = function (options) {
  // 将options挂载到 this.$options
  this.$options = options;
  initData(this);

  if (this.$options.el) {
    this.$mount();
  }
};

Vue.prototype.$mount = function () {
  mount(this);
};
